# coding: utf-8
'''
Created on 23 avr. 2011

@author: shin
'''
import unittest
from business.Element import Element
from stub.DaoElement import DaoElement

class Test(unittest.TestCase):

    def setUp(self):
        self.element = Element(DaoElement("Guerrier", "Nain"))

    def tearDown(self):
        del self.element

    def test_init_type(self):
        self.assertEqual(self.element.type, "Vivant")

    def test_init_hauteur(self):
        self.assertEqual(self.element.hauteur, 0)

    def test_init_nom(self):
        self.assertEqual(self.element.nom, "Rankor")
        
if __name__ == "__main__":
    #import sys;sys.argv = ['', 'Test.testName']
    unittest.main()
    
